package idea.think;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.webkit.WebView;


public class NateWeb extends Activity {	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.web_nate);
		WebView web = (WebView)findViewById(R.id.web);
		web.getSettings().setJavaScriptEnabled(true);
	
		Intent i = getIntent();	
		String item1 = i.getStringExtra("ITEM1");
		String item2 = i.getStringExtra("ITEM2");
		String item3 = i.getStringExtra("ITEM3");
			
		web.loadUrl("http://m.search.nate.com/search/all.html?q=" + item1 +"+"+ item2 +"+"+ item3);				
	}
	
	@Override
	public void onBackPressed() {
		finish();
		super.onBackPressed();
	}
}
